import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
   
    {
      path: '/',
      name: 'Login',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Member/Login.vue'),
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
   
    {
      path: '/AddMember',
      name: 'AddMember',
      component: () => import('../views/Member/AddMember.vue'),
    },
    {
      path: '/ShowMember',
      name: 'ShowMember',
      component: () => import('../views/Member/ShowMember.vue'),
    },
    {
      path: '/AddMemberRank',
      name: 'AddMemberRank',
      component: () => import('../views/MemberRank/AddMemberRank.vue'),
    },
    {
      path: '/ShowMemberRank',
      name: 'ShowMemberRank',
      component: () => import('../views/MemberRank/ShowMemberRank.vue'),
    },
    {
      path: '/UpdateMemberRank/:id',
      name: 'UpdateMemberRank',
      component: () => import('../views/MemberRank/UpdateMemberRank.vue'),
    },
    {
      path: '/AddMemberRights',
      name: 'AddMemberRights',
      component: () => import('../views/MemberRights/AddMemberRights.vue'),
    },
    {
      path: '/ShowMemberRights',
      name: 'ShowMemberRights',
      component: () => import('../views/MemberRights/ShowMemberRights.vue'),
    },
    {
      path: '/UpdateRights/:id',
      name: 'UpdateRights',
      component: () => import('../views/MemberRights/UpdateRights.vue'),
    },
    {
      path: '/AddRankRights',
      name: 'AddRankRights',
      component: () => import('../views/RankRights/AddRankRights.vue'),
    },
    {
      path: '/ShowRankRights',
      name: 'ShowRankRights',
      component: () => import('../views/RankRights/ShowRankRights.vue'),
    },
    {
      path: '/AddShop',
      name: 'AddShop',
      component: () => import('../views/Shop/AddShop.vue'),
    },
    {
      path: '/ShowShop',
      name: 'ShowShop',
      component: () => import('../views/Shop/ShowShop.vue'),
    },
    {
      path: '/UpdateShop/:id',
      name: 'UpdateShop',
      component: () => import('../views/Shop/UpdateShop.vue'),
    },
    {
      path: '/AddDiscount',
      name: 'AddDiscount',
      component: () => import('../views/Discount/AddDiscount.vue'),
    },
    {
      path: '/ShowDiscount',
      name: 'ShowDiscount',
      component: () => import('../views/Discount/ShowDiscount.vue'),
    },
    {
      path: '/AddVoucher',
      name: 'AddVoucher',
      component: () => import('../views/Voucher/AddVoucher.vue'),
    },
    {
      path: '/ShowVoucher',
      name: 'ShowVoucher',
      component: () => import('../views/Voucher/ShowVoucher.vue'),
    },
    {
      path: '/UpdateVoucher/:id',
      name: 'UpdateVoucher',
      component: () => import('../views/Voucher/UpdateVoucher.vue'),
    },

    {
      path: '/AddRoomType',
      name: 'AddRoomType',
      component: () => import('../views/RoomType/AddRoomType.vue'),
    },
    {
      path: '/ShowRoomType',
      name: 'ShowRoomType',
      component: () => import('../views/RoomType/ShowRoomType.vue'),
    },
    {
      path: '/UpdateRommType/:id',
      name: 'UpdateRommType',
      component: () => import('../views/RoomType/UpdateRommType.vue'),
    },
    {
      path: '/AddRoomNumber',
      name: 'AddRoomNumber',
      component: () => import('../views/RoomNumber/AddRoomNumber.vue'),
    },
    {
      path: '/ShowRoomNumber',
      name: 'ShowRoomNumber',
      component: () => import('../views/RoomNumber/ShowRoomNumber.vue'),
    },
    {
      path: '/UpdateNumber/:id',
      name: 'UpdateNumber',
      component: () => import('../views/RoomNumber/UpdateNumber.vue'),
    },
    {
      path: '/AddRowRoom',
      name: 'AddRowRoom',
      component: () => import('../views/RowRoom/AddRowRoom.vue'),
    },

  ],
})

export default router
